import StatusEnum from "@/enums/StatusEnumH";
import DrugFearBackTypeEnum from "@/enums/DrugFearBackTypeEnum";
import {
  search
} from '/src/api/pharmacy/drug'

/**
 * @param label 表头
 * @param prop 字段名
 * @param isSearch 是否筛选项
 * @type {[{isSearch: boolean, prop: string, label: string},{isSearch: boolean, prop: string, label: string},{isSearch: boolean, prop: string, label: string},{isSearch: boolean, prop: string, label: string, enum: {0: string, 1: string, 2: string}}]}
 */
const tableColumn = [{
  label: "药房ID",
  prop: "id",
  isSearch: false,
  isTable: true,
  isSearch: true,
  formType: "input"
}, {
  label: "药品名称",
  prop: "name",
  isTable: true,
  isForm: true,
  isSearch: true,
  formType: "input"
}, {
  label: "联系人",
  prop: "user_name",
  isTable: true,
  isForm: true,
  isSearch: true,
  formType: "input"
}, {
  label: "联系电话",
  prop: "user_mobile",
  isTable: true,
  isForm: true,
}, {
  label: "药品类型",
  prop: "processStr",
  isTable: true,
}, {
  label: "药态",
  prop: "typeStr",
  isTable: true,
}, {
  label: "编辑时间",
  prop: "updated_at",
  isTable: true,
}, {
  label: "编辑人",
  prop: "updated_name",
  isTable: true,
}, {
  label: "药房状态",
  prop: "status",
  isSearch: true,
  isTable: true,
  formType: "radio",
  defaultValue: 0,
  enum: StatusEnum
}]
const tableConfig = {
  editBtnShow: true,
  editBtnPath: "/pharmacy/officina_edit",
  buttons: ["view", "edit", "store"]
}
const pageConfig = {
  small: false,
  disabled: false,
  background: false,
}

export {
  tableColumn,
  tableConfig,
  pageConfig
};